package cn.lttest.user.service;

import cn.lttest.user.dao.UserDao;
import cn.lttest.user.entity.User;

public class UserService {
	private UserDao dao = new UserDao();
	
	public boolean login(User user){
		User u = dao.findByUsernameAndPassword(user.getUsername(),user.getPasswd());
	
		if (u == null) {
			return false;
		}else return true;
	}
}
